package com.crc.luojian.web;

import com.crc.luojian.util.ApplicationContextUtils;
import org.apache.catalina.LifecycleException;

/**
 * @program: luojian-springframework
 * @description:
 * @author: luojian58
 * @create: 2021-06-11 11:11
 */
public class StartApplication {
    public static  void  run(String[] args)   {
        //加载bean
        ApplicationContextUtils.refresh();
        TomcatServer tomcatServer = new TomcatServer(args);
        try {
            tomcatServer.start(8080);
        }catch (Exception e){
            e.printStackTrace();
        }

    }
}
